from openpyxl import Workbook
wb = Workbook()
ws = wb.active

# Write a workbook
for row in range(1, 40):
    ws.append(range(50))

# wb.create_sheet('My Data')
# for row in range(10, 20):
#    for col in range(27, 54):
#        _ = ws.cell(column=col, row=row, value="{0}".format(get_column_letter(col)))

wb.save('test.xlsx')
